// 页面 mixins
const { BUCKET_RESOURCE } = require('../constants/common');
const { DEFAULT_MODE, DEFAULT_STYLE_MODE, DEFAULT_THEME } = require('../config');
const { getMode, getTheme, getStyleMode } = require('../biztools/info');

/**
 * 页面基础 Mixins 默认情况下所有页面都需要引用
 */
const PageBase = {
    data: {
        _bucket: BUCKET_RESOURCE,
        mode: getMode() || DEFAULT_MODE,
        theme: getTheme() || DEFAULT_THEME,
        styleMode: getStyleMode() || DEFAULT_STYLE_MODE,
    },
};

module.exports = {
    PageBase,
};